/**
 * 
 */
package com.alstudio.module.sns.base;

import com.alstudio.ui.base.BaseActivity;

/**
 * SNS模块模板
 * 
 * @author alonso lee
 * 
 */
public abstract class SnsTemplate {
	
	//当前执行功能
	public SnsActions currentAction;
	
	//回调方法
	protected SnsCallback snsCallback;
	
	

	/**
	 * @return the currentAction
	 */
	public SnsActions getCurrentAction() {
		return currentAction;
	}

	/**
	 * @param currentAction the currentAction to set
	 */
	public void setCurrentAction(SnsActions currentAction) {
		this.currentAction = currentAction;
	}

	/**
	 * 开启登陆
	 * 
	 * @param activity
	 * @param callback
	 */
	public abstract void auth(BaseActivity activity, SnsCallback callback);

	/**
	 * 分享本地图片
	 * 
	 * @param activity
	 * @param content
	 * @param imageFile
	 * @param isAddLoovee
	 * @param callback
	 */
	public abstract void share(BaseActivity activity, String content,
			String imageFile, boolean isAddLoovee, SnsCallback callback);

	/**
	 * 分享网络图片
	 * 
	 * @param activity
	 * @param content
	 * @param imageUrl
	 * @param isAddLoovee
	 * @param callback
	 */
	public abstract void shareWithImageUrl(BaseActivity activity,
			String content, String imageUrl, boolean isAddLoovee,
			SnsCallback callback);

	/**
	 * 获取好友列表
	 * 
	 * @param activity
	 * @param callback
	 */
	public abstract void getFriends(BaseActivity activity, SnsCallback callback);

}
